package com.fzn.springboot_jsp_shiro;

import com.fzn.springboot_jsp_shiro.config.ShiroConfig;
import org.apache.shiro.realm.Realm;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author Administrator
 */
@SpringBootApplication
public class SpringbootJspShiroApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(SpringbootJspShiroApplication.class, args);
        //ApplicationContext context = new AnnotationConfigApplicationContext(ShiroConfig.class);
        //// 获取这个bean
        //Realm realm = context.getBean(Realm.class);
        //System.out.println(realm);
    }

}
